package com.yand.spring.DesignPrinciples.lawOfDemeterLod.afterImprovement;

import com.yand.spring.DesignPrinciples.lawOfDemeterLod.beforeImprovement.Course;

import java.util.ArrayList;
import java.util.List;

public class TeamLeader {

    public void checkNumberCourses(){
        //boss   一行一行往下翻 boss   统计
        List<Course> courseList = new ArrayList<>();
        for(int i = 0 ; i < 20 ; i ++){
            courseList.add(new Course());
        }

        System.out.println("目前已发布的课程数量是："+ courseList.size());
    }

}
